<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      width: 200px;
      height: 200px;
      background-color: pink;

    }
    /* div::after,
    div::before {
      content: "";
      display: table;
    }
    div::after {
      clear: both;
    }
    .clearfix {
      *zoom: 1;
    } */
    p {
      width: 200px;
      height: 200px;
      background-color: blue;
      float: left;
    }
  </style>
</head>
<body>
  <div>111</div>
  <p>ddd</p>
  <div style="clear: both;"></div>
  <div></div>
</body>
</html>